import Audit from '@/assets/mall/trade/order/order_audit.png'
import Confirm from '@/assets/mall/trade/order/order_waitConfirm.png'
import Deliver from '@/assets/mall/trade/order/order_waitDeliver.png'
import Signed from '@/assets/mall/trade/order/order_signed.png'
import OutStock from '@/assets/mall/trade/order/order_outStock.png'
import Sended from '@/assets/mall/trade/order/order_sended.png'
import Unsigned from '@/assets/mall/trade/order/order_unsigned.png'
import Error from '@/assets/mall/trade/order/order_error.png'
import Invalid from '@/assets/mall/trade/order/order_invalid.png'
import afterWait from '@/assets/mall/trade/order/after_order_wait.png'

export const orderStatus = {
  0: {
    name: '待审核',
    icon: Audit,
    color: '#FF8800',
    bgColor: 'rgba(255, 136, 0, 0.08)'
  },
  1: {
    name: '待确认',
    icon: Confirm,
    color: '#0077FF',
    bgColor: 'rgba(0, 102, 255, .08)'
  },
  2: {
    name: '待发货',
    icon: Deliver,
    color: '#3721FF',
    bgColor: 'rgba(55, 33, 255, .08)'
  },
  3: {
    name: '已签收',
    icon: Signed,
    color: '#00C589',
    bgColor: 'rgba(0, 217, 173, .08)'
  },
  4: {
    name: '缺货中',
    icon: OutStock,
    color: '#FF0000',
    bgColor: 'rgba(255, 0, 0, .08)'
  },
  5: {
    name: '已发货',
    icon: Sended,
    color: '#00BF2D',
    bgColor: 'rgba(0, 191, 45, .08)'
  },
  6: {
    name: '未签收',
    icon: Unsigned,
    color: '#FF4600',
    bgColor: 'rgba(255, 70, 0, .08)'
  },
  7: {
    name: '异常订单',
    icon: Error,
    color: '#D60000',
    bgColor: 'rgba(214, 0, 0, .08)'
  },
  8: {
    name: '无效订单',
    icon: Invalid,
    color: '#101010',
    bgColor: 'rgba(16, 16, 16, .08)'
  },
  10: {
    name: '待发货',
    icon: Deliver,
    color: '#3721FF',
    bgColor: 'rgba(55, 33, 255, .08)'
  },
  20: {
    name: '已发货',
    icon: Sended,
    color: '#00BF2D',
    bgColor: 'rgba(0, 191, 45, .08)'
  },
  30: {
    name: '已签收',
    icon: Signed,
    color: '#00C589',
    bgColor: 'rgba(0, 217, 173, .08)'
  },
  40: {
    name: '无效订单',
    icon: Invalid,
    color: '#101010',
    bgColor: 'rgba(16, 16, 16, .08)'
  }
}

export const afterOrderStatus = {
  40: {
    name: '待处理',
    icon: afterWait,
    color: '#FF8800',
    bgColor: 'rgba(255, 136, 0, 0.08)'
  },
  61: {
    name: '已作废',
    icon: Invalid,
    color: '#101010',
    bgColor: 'rgba(16, 16, 16, .08)'
  },
  50: {
    name: '已处理',
    icon: afterWait,
    color: '#FF8800',
    bgColor: 'rgba(255, 136, 0, 0.08)'
  }
}
